<!-- View -->
<script type="text/javascript" src="<?php echo $img_url; ?>style/js/FE/video.js"></script>

<div id="detail-title">
    <span class="title"><?php echo $page_title; ?></span>
    <img src="<?php echo $base_url; ?>style/images/img28.gif">
    <div class="ico-social">
        <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $current_url; ?>&display=popup&ref=plugin" target="_blank"><img src="<?php echo $img_url; ?>style/images/imgfb.gif" width="16" height="16" border="0"></a>
        <a href="https://twitter.com/share" target="_blank"><img src="<?php echo $img_url; ?>style/images/imgtw.gif" width="16" height="16" border="0"></a>
        <a href="https://plus.google.com/share?url=<?php echo $current_url; ?>" target="_blank"><img src="<?php echo $img_url; ?>style/images/imggp.gif" width="16" height="16" border="0"></a>
        <a href="javascript:void(0);" onclick="return openPopup('contactForm')"><img src="<?php echo $img_url; ?>style/images/imgma.gif" width="16" height="16" border="0"></a>
        <a href="javascript:void(0);" onclick="javascript:window.print();"><img src="<?php echo $img_url; ?>style/images/imgpr.gif" width="16" height="16" border="0"></a>

        <span class="time">
            <?php
            //show date time Tieng Viet
            $str_search = array(
                "Mon",
                "Tue",
                "Wed",
                "Thu",
                "Fri",
                "Sat",
                "Sun"
            );
            $str_replace = array(
                "Th&#7913; hai",
                "Th&#7913; ba",
                "Th&#7913; t&#432;",
                "Th&#7913; n&#259;m",
                "Th&#7913; s&#225;u",
                "Th&#7913; b&#7843;y",
                "Ch&#7911; nh&#7853;t"
            );
            $timenow = gmdate("D, d/m/Y | H:i", time() + 7 * 3600);
            $timenow = str_replace($str_search, $str_replace, $timenow);
            echo $timenow;
            ?>      
        </span>
    </div>
</div>  
<div id="seperator"></div>
<!-- details: column -->
<div id="detail-body">
    <form method="get" action="/video/tim-kiem/1" id="formVideo">
        <input type="text" value="<?php if(isset($_GET["txtSearch"])) echo $_GET["txtSearch"]; ?>" id="txtSearch" name="txtSearch" placeholder="Nhập video cần tìm">
        <input type="submit" value="Tìm kiếm" id="btnVideoSearch" />
    </form>
    <div class="clearfix"></div>
    <div id="video-body">  
        <?php
        if(sizeof($aVideo) > 0){
        ?>
        <ul class="video-list">
            <?php
            $k = 1;
            foreach($aVideo as $item){
            ?>
            <li class="video-item">
                <a onclick="Video.showVideo('<?php echo $item->link ?>');">
                    <img src="<?php echo $item->img ?>" border="0">
                    <span class="video-title-img"></span>
                </a> 
                <a onclick="Video.showVideo('<?php echo $item->link ?>');">
                    <b><?php echo $item->title ?></b>
                </a>
            </li>
            <?php
                if($k == 4){
                    echo "<div class='clearfix'></div>";
                    $k = 0;
                }
                $k++;
            }
            ?>
        </ul>
        <div class="clearfix"></div>
        <div id="video-paging">
            <?php echo $paging; ?>
        </div>
        <?php
        } else{
        ?>
        <div id="nodata">Không có dữ liệu tồn tại</div>
        <?php
        }
        ?>
    </div>
</div>  

